



                      Danny Goodman's 
                JavaScript Bible 4th Edition
                        Appendix A
           Quick Reference and Compatibility Guide
                      1 February 2001


          BOOKLET CONFIGURATIONS FOR DUPLEX PRINTERS

             PRINTING AND COLLATING INSTRUCTIONS
             -----------------------------------

           Read this entire document before printing. 
                 
      
      
Requirements
------------
The Quick Reference document requires the Adobe Acrobat Reader 3.0 or later to display and print.  If you do not have this software, it is available for free downloading from http://www.adobe.com.

       -----------------------------------------------
      | IMPORTANT! Adobe Acrobat Page Setup Settings  |
      | --------------------------------------------  |
      | Before you print any part of the Quick        |
      | Reference document, make sure that the        |
      | Page Setup dialog box settings are set to     |
      | LANDSCAPE orientation. If your printer        |
      | provides multiple paper size options (e.g.,   |
      | a regular and 'small' version of U.S.Letter   |
      | or A4), choose the regular paper size. This   |
      | setting minimizes the margins, and lets the   |
      | page content scale up to the largest possible |
      | size to fit your printer's paper.             |
       -----------------------------------------------

The document prints on 14 sides of letter-sized paper. For optimum convenience and portability, the document can be printed on the front and back of printer paper (see below for combinations), and these sheets can be stapled together in booklet form so that either the short or long edge of the booklet serves as the binding. My personal preference is to bind along the long edge so that I flip pages up and down.

There is a lot of small print in the Quick Reference document (making it difficult to use on the video monitor), so I recommend a 600 dpi printer. Portions of the document may not be readable at lesser resolutions.

In the instructions below, I assume you have a printer that is designed for automatic duplex printing. Such a printer accepts a document in one gulp, and handles all paper handling to print front, back, front, back, and so on.

NOTE: If you are not using a duplex printer for this document, other versions and instructions are available for printing both booklet and broadside (poster) versions on traditional printers.

PDF Document Structure
----------------------
As described in the text of the JavaScript Bible 4th Edition, there are essentially three Document Object Models for which we can write scripts:

  * Backward compatible to earliest versions (plus NN4 
    oddities).
  * Microsoft Internet Explorer 4.0 and later (IE4+).
  * The W3C DOM as implemented (in varying degrees) in 
    IE5+ and NN6.

Then there is JavaScript, itself:

  * JavaScript core language
  
The booklet form of the Quick Reference document is laid out on 14 sides of paper. The 14 sides contain the following information:

   Side Number      Content
   -----------      ---------------------------------------
       (1)          Cover
        2           Core JavaScript Quick Reference
        3           Core JS (cont'd); Style Properties
        4           Orig. DOM Quick Reference (Page 1 of 2)
        5           Orig. DOM Quick Reference (Page 2 of 2)
        6           IE4+ DOM Quick Reference (Page 1 of 4)
        7           IE4+ DOM Quick Reference (Page 2 of 4)
        8           IE4+ DOM Quick Reference (Page 3 of 4)
        9           IE4+ DOM Quick Reference (Page 4 of 4)
       10           W3C DOM Quick Reference (Page 1 of 4)
       11           W3C DOM Quick Reference (Page 2 of 4)
       12           W3C DOM Quick Reference (Page 3 of 4)
       13           W3C DOM Quick Reference (Page 4 of 4)
      (14)          IE DOM Graphical Roadmap

For duplex printers, the PDF document page numbers and reference Side numbers are the same. The only difference between the two binding versions is that the odd-numbered pages in the long-edge bound version are inverted. 

Printed Document Structure
--------------------------
The Quick Reference is designed to display two-page spreads (all pages print in landscape -- wide -- orientation). For example, when bound along the short side of the paper, the first two pages of the IE4+ DOM Quick Reference look like Figure 1 (Sheet numbers shown in the top corners):

         ------------- ------------- 
        |            6|7            | 
        |IE4+ DOM     |     IE4+ DOM|
        |Page 1 of 4  |  Page 2 of 4|
        |             |             |          (Figure 1.)
        |             |             |
         ------------- -------------

If you bind along the long edges, the same spread would look like the one shown in Figure 2.

         ------------- 
        |            6|
        |IE4+ DOM     |
        |Page 1 of 4  |
        |             |
        |             |
         ------------- 
        |7            |
        |     IE4+ DOM|
        |  Page 2 of 4|
        |             |          (Figure 2.)
        |             |
         -------------


A Practice Sheet
----------------
To get to know your printer's paper handling characteristics, experiment with just one page. Print only Page 1 and 2 of the PDF Document (in the Print dialog box, enter a Print Range "From 1 To 2"). 

-- SHORT Edge Binding Back Side Printing Test
If your printer performs as expected, the top of both sides' content will be along the same edge.

-- LONG Edge Binding Back Side Printing Test
If your printer performs as expected, the each side will be upside down with respect to the one on the back side.

Printing the Reference
----------------------
If the practice sheet came out as expected, you can print the entire document. In the Print dialog box, choose to print all pages (or only 3 to 14 to utilize the practice page in your final set).

Assembling the Reference
------------------------
Sort the pages so that the cover page is face up on top of the pile, and, as you lift each page, the next odd-numbered Side is also face up (3, 5, 7, etc.).

Verify that the even-numbered Sides are printed in the desired orientation:

   * For binding along the SHORT edge, grop the left short edge,
     and flip the pages. You should see two-page spreads 
     as shown in Figure 1.
   * For binding along the LONG edge, grip the top long edge, 
     and flip the pages. You should see two-page spreads 
     as shown in Figure 2.

Carefully staple the pages together along the desired edge, and NO MORE THAN ABOUT ONE-QUARTER INCH FROM THE EDGE. For the long edge, five equally-spaced staples should do the job; for the short edge, three evenly-spaced staples are sufficient.

For your safety, cover the back side of the staples with cellophane or clear packing tape. The goal is to prevent the sharp ends of staples from opening up and puncturing valuable possessions, such as your fingers.

Folding the Reference
---------------------
Regardless of the edge you use to bind your Quick Reference, you will find the booklet easier to use if you crease the pages near the binding. Here is how to do it:

1. With the document resting on a desk top and the cover showing face up, 
   open the first two pieces of paper.
2. Open the booklet all the way, and tug firmly until the top pages
   nearly begin creasing on their own.
3. Finish the job by folding the pages back completely, trying to maintain
   a straight crease edge if you can.
4. Open each succeeding page and fold it back along the creased edge.

Maintaining the Reference
-------------------------
As with any publication, the better your binding, the longer the document will last. A good taping job along the stapled edge will lengthen the life of your Quick Reference.

You always have the "comfort" of being able to print and assemble a new set. But by that time, you will have forgotten how your printer wants to print the back sides, and you'll go through the practice session once more.


Updated versions of this document are available at: www.dannyg.com/javascript
Comments and suggestions welcome: roadmap@dannyg.com


Copyright 2001 Danny Goodman (www.dannyg.com). All Rights Reserved.
